cmake_minimum_required(VERSION 3.20)


project(http_server4 LANGUAGES CXX)

set(CMAKE_CXX_STANDARD 11)
set(CMAKE_CXX_STANDARD_REQUIRED True)

add_compile_definitions(BOOST_ASIO_ENABLE_HANDLER_TRACKING)

find_package(Boost COMPONENTS system thread REQUIRED) # Asio作为Boost的一部分，通常需要system和thread组件

file(GLOB_RECURSE BOOST_SRC "./src/*.cpp")

add_executable(http_server4 ${BOOST_SRC})

target_include_directories(http_server4 PRIVATE
    ./include
)


target_link_libraries(http_server4 PRIVATE
    ${Boost_LIBRARIES}
)